package taller2.view.windows.MainWindows;

import taller2.controller.listeners.evaluateMeButtons.PrimmEvaluateMeButtonListener;
import taller2.interfaces.AlgorithmApplicator;
import taller2.interfaces.Graph;
import taller2.model.factorys.GraphFactory;
import taller2.utils.Constants;
import taller2.utils.Constants.Colores;
import taller2.utils.Point;
import taller2.view.draws.GraphDrawer;
import taller2.view.windows.MyWindow;

public class PrimmMainWindow extends MainWindow{
	Graph reference;
	GraphDrawer referenceDrawer;

	public PrimmMainWindow(MyWindow parent, String path, boolean directed,
			AlgorithmApplicator algorithmApplicator) {
		super(parent, path, directed, algorithmApplicator,new PrimmEvaluateMeButtonListener(algorithmApplicator));

		reference = GraphFactory.directedGgraphInstance();
		
		reference.add(new Point(30, 50), "Visited");
		reference.getNodes().get(0).changeColor(Colores.red);

		referenceDrawer = new GraphDrawer(reference, Constants.selectedColor, Constants.unSelectedColor);
		referenceDrawer.resize(50, 4, Constants.SampleTextSize);

		area.addDrawable(referenceDrawer);
	}

	
}
